package com.baike.service;

import com.baike.entity.Menu;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author x_FG
 * @since 2021-10-28
 */
public interface IMenuService extends IService<Menu> {

    List<Map<String, Object>> getMenuInfo();

    List<Map<String, Object>> getMenuZtree();

    boolean insertMenuInfo(Menu menu);

    Menu getMenuById(Integer id);

    boolean updateMenuInfo(Menu menu);

    boolean deleteMenuInfo(Integer id);

    List<Map<String, Object>> getRoleMenu(Integer rid);

    List<String> selectMenuPerms(Integer uid);
}
